/*
  Copyright 2009 Smart Enterprise Solution Corp.
  Email: contact@ses.vn - Website: http://www.ses.vn
  KimNgan Project.
*/
using System;
using System.Data;
using System.Configuration;
using System.Collections;

using SES.CMS.DAL;
using SES.CMS.DO;
/// <summary>
/// Summary description for PhanQuyenBL
/// </summary>
namespace SES.CMS.BL
{
    public class PhanQuyenBL
    {
        #region Private Variables
        PhanQuyenDAL objPhanQuyenDAL;
        #endregion

        #region Public Constructors
        public PhanQuyenBL()
        {
            //
            // TODO: Add constructor logic here
            //
            objPhanQuyenDAL = new PhanQuyenDAL();
        }
        #endregion

        #region Public Methods
        public int Insert(PhanQuyenDO objPhanQuyenDO)
        {
            return objPhanQuyenDAL.Insert(objPhanQuyenDO);
        }

        public int Update(PhanQuyenDO objPhanQuyenDO)
        {
            return objPhanQuyenDAL.Update(objPhanQuyenDO);

        }

        public int Delete(int UserID)
        {
            return objPhanQuyenDAL.Delete(UserID);

        }

        public int DeleteAll()
        {
            return objPhanQuyenDAL.DeleteAll();
        }

        public DataTable Select(int UserID)
        {
            return objPhanQuyenDAL.Select(UserID);
        }
        public DataTable SelectMenuLef(int UserID)
        {
            return objPhanQuyenDAL.SelectMenuLef(UserID);
        }
        public DataTable CheckPhanQuyen(int UserID, string Link)
        {
            return objPhanQuyenDAL.CheckPhanQuyen(UserID, Link);
        }
        public DataTable SelectMenu(int UserID)
        {
            return objPhanQuyenDAL.SelectMenu(UserID);
        }
        public ArrayList SelectAll1()
        {
            return objPhanQuyenDAL.SelectAll1();
        }

        public DataTable SelectAll()
        {
            return objPhanQuyenDAL.SelectAll();
        }


        public DataTable SelectGetByTop(string Top, string Where, string Order)
        {
            return objPhanQuyenDAL.SelectGetByTop(Top, Where, Order);
        }
        #endregion

    }

}
